package zcjq.d912;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class P7 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String seq = scanner.nextLine().trim().replaceAll(" ", "");
        if (seq.length() <= 2) {
            System.out.println(0);
            return;
        }
        //
        List<int[]> list = new ArrayList<int[]>();
        Arrays.stream(seq.substring(1, seq.length() - 2).split("],")).forEach(s -> {
            int[] item = Arrays.stream(s.substring(1).trim().split(",")).mapToInt(Integer::valueOf).toArray();
        });

    }
}
